package com.auto.survey.activity.monitoring.entity.relations

import androidx.room.Embedded
import androidx.room.Relation
import com.auto.survey.activity.monitoring.entity.MonitoringObject
import com.auto.survey.activity.monitoring.entity.MontoringProject

/**
 * 项目与监测对象关联类
 * 用于获取项目及其关联的所有监测对象
 */
data class MonitoringProjectWithObject(
    /**
     * 项目信息
     */
    @Embedded val project: MontoringProject,
    /**
     * 项目关联的监测对象列表
     */
    @Relation(
        parentColumn = "id",
        entityColumn = "projectId"
    )
    val monitorings: List<MonitoringObject>
)